package cn.itcast.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.example.pojo.User;

@Data
@TableName("order_tbl")
public class Order {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String userId;
    private String commodityCode;
    private Integer count;
    private Integer money;

    /**
     * 订单状态
     * 0 订单创建 初始状态
     * 1 支付中
     * 2 支付成功
     * 3 支付取消
     */
    private int state;

    /**
     * 支付订单号
     */
    private String paymentId;
}
